package com.hopital5.zhangyz.vo.response;

import com.hopital5.zhangyz.model.ActivityItem;

import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class ActivityItemVoResponse {
    private Long id;
    private String name;
    private String unit;

    public static ActivityItemVoResponse build(ActivityItem activityItem) {
        ActivityItemVoResponse activityItemVoResponse = ActivityItemVoResponse.builder()
                .id(activityItem.getId())
                .name(activityItem.getName())
                .unit(activityItem.getUnit())
                .build();
        return activityItemVoResponse;
    }

}
